"use strict";
/*
 * @Author: quit
 * @Date: 2023-03-17 02:47:11
 * @LastEditTime: 2023-03-19 13:13:04
 * @Descripttion: implements
 * @notice:
 */
Object.defineProperty(exports, "__esModule", { value: true });
class Door {
    constructor() {
        this.bashou = '铜';
    }
    warning() {
        console.log('防盗门的报警功能');
    }
}
class Car {
    constructor() {
        this.wheel = 4;
    }
    warning() {
        console.log('车的报警功能');
    }
}
let d1 = new Door();
let c1 = new Car();
d1.warning();
c1.warning();
// class CarBWM extends Car {
//     danggan: string = '鸡腿式';
// }
// let v1: CarBWM = new CarBWM();
// v1.warning();
class CarBWM extends Car {
    constructor() {
        super(...arguments);
        this.danggan = '鸡腿式';
    }
    warning() {
        console.log('BWM的报警功能');
    }
}
let v1 = new CarBWM();
v1.warning();
